﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BoAddonBiz_FreightForwarder.ObjectFind
{
    class B1Form_Find
    {
        private B1Form_Find()
        { }
        public static SAPBoAddon.B1FormInitializePar ShowForm(string FatherUID, string MenuUID)
        {
            SAPBoAddon.B1FormInitializePar init = new SAPBoAddon.B1FormInitializePar();
            init.CallType = SAPBoAddon.B1FormCallType.ct_MenuCall;
            init.FatherFormUID = FatherUID;
            init.parObject = false;
            switch (MenuUID)
            {
                case B1MenuTypes.ado_AVA_FF_QuoteFind:
                    init.KeyValue = "AVA_FF_Quote";
                    break;
                case B1MenuTypes.ado_AVA_SE_QuoteFind:
                    init.KeyValue = "AVA_SE_Quote";
                    break;
                case B1MenuTypes.ado_AVA_LN_QuoteFind:
                    init.KeyValue = "AVA_LN_Quote";
                    break;
                case B1MenuTypes.ado_AVA_FF_SalesOrderFind:
                    init.KeyValue = "AVA_FF_SalesOrder";
                    break;
                case B1MenuTypes.ado_AVA_SE_SalesOrderFind:
                    init.KeyValue = "AVA_SE_SalesOrder";
                    break;
                case B1MenuTypes.ado_AVA_LN_SalesOrderFind:
                    init.KeyValue = "AVA_LN_SalesOrder";
                    break;
                case B1MenuTypes.ado_AVA_FF_DelegateFind:
                    init.KeyValue = "AVA_FF_Delegate";
                    break;
                case B1MenuTypes.ado_AVA_SE_DelegateFind:
                    init.KeyValue = "AVA_SE_Delegate";
                    break;
                case B1MenuTypes.ado_AVA_LN_DelegateFind:
                    init.KeyValue = "AVA_LN_Delegate";
                    break;
                case B1MenuTypes.ado_AVA_FF_BusinessOperationFind:
                    init.KeyValue = "AVA_FF_BusinessOpera";
                    break;
                case B1MenuTypes.ado_AVA_SE_BusinessOperationFind:
                    init.KeyValue = "AVA_SE_BusinessOpera";
                    break;
                case B1MenuTypes.ado_AVA_LN_BusinessOperationFind:
                    init.KeyValue = "AVA_LN_BusinessOpera";
                    break;
                case B1MenuTypes.ado_AVA_OR_BusinessOperationFind:
                    init.KeyValue = "AVA_OR_BusinessOpera";
                    break;
                case B1MenuTypes.ado_AVA_OpenInvoiceARFind:
                    init.KeyValue = "AVA_OpenInvoiceAR";
                    break;
                case B1MenuTypes.ado_AVA_OpenInvoiceAPFind:
                    init.KeyValue = "AVA_OpenInvoiceAP";
                    break;
                case B1MenuTypes.ado_AVA_FF_BJSClearCustomsFind:
                    init.KeyValue = "AVA_FF_Clearance";
                    break;
                case B1MenuTypes.ado_AVA_FF_BJSApplyCustomsFind:
                    init.KeyValue = "AVA_FF_ApplyCustoms";
                    break;
                case B1MenuTypes.ado_AVA_FF_BJSWarehouse_INFind:
                    init.KeyValue = "AVA_FF_Storage";
                    break;
                case B1MenuTypes.ado_AVA_InvoiceFind:
                    init.KeyValue = "AVA_Invoice";
                    break;
                case B1MenuTypes.ado_AVA_SEDLFind:
                    init.KeyValue = "AVA_SEDL";
                    break;
                case B1MenuTypes.ado_AVA_SE_SEDLFind:
                    init.KeyValue = "AVA_SE_SEDL";
                    break;
                case B1MenuTypes.ado_AVA_FF_PrealertFind:
                    init.KeyValue = "AVA_FF_Prealert";
                    break;
                case B1MenuTypes.ado_AVA_SE_PrealertFind:
                    init.KeyValue = "AVA_SE_Prealert";
                    break;
            }
            return init;
        }
    }
}
